package cn.wolfcode.controller;


import cn.wolfcode.domain.JsonResult;
import cn.wolfcode.domain.RecordLog;
import cn.wolfcode.qo.RecordLogQueryObject;
import cn.wolfcode.service.IRecordLogService;
import cn.wolfcode.qo.QueryObject;
import cn.wolfcode.util.RequiredPermission;
import com.github.pagehelper.PageInfo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/recordLog")
public class RecordLogController {

    @Autowired
    private IRecordLogService recordLogService;
    @RequiredPermission(name="操作日志显示",expression ="recordLog:list")
    @RequestMapping("/list")
    public String list(Model model, @ModelAttribute("qo") RecordLogQueryObject qo){
        PageInfo<RecordLog> pageInfo = recordLogService.query(qo);
        model.addAttribute("pageInfo", pageInfo);
        return "recordLog/list";
    }

}
